package com.yunyi.entity.mongo;

import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.index.Indexed;
import org.springframework.data.mongodb.core.mapping.Document;

import java.time.LocalDateTime;

@Data
@Document(collection = "chat_histories")
public class ChatMessageDocument {
    @Id
    private String id;

    @Indexed
    private String sessionId;

    private String role;

    private String content;

    private LocalDateTime createTime;

}